package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    Map<String,String> wxLogin(String code);



    void updateUser(UserInfoVo userInfoVo);

    /**
     * 判断用户是否购买了声音
     * @param userId
     * @param albumId
     * @param needCheckBuyStateTrackIds
     * @return
     */
    Map<Long, Integer> userIsPaidTrack(Long userId, Long albumId, List<Long> needCheckBuyStateTrackIds);
}
